package com.cskaoyan.controller;


import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.service.WxIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("wx/home")
public class HomeController {

    @Autowired
    WxIndexService wxindexService;

    @RequestMapping("index")
    public BaseRespVo index() throws IOException {

        return BaseRespVo.ok(wxindexService.list());
    }
}